<!--
 * @Author: wuzhen
 * @Date: 2019-12-03 14:04:34
 * @LastEditors: wuzhen
 * @LastEditTime: 2019-12-09 09:44:30
 * @Description: app.vue
 -->

<template>
  <div id="app">
    <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>
<script>
export default {
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(() => {
        this.isRouterAlive = true;
      });
    }
  }
};
</script>

<style lang="less">
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #515a6e;
}
#app,
body,
html {
  width: 100%;
  height: 100%;
}
@import "./assets/css/index.less";
</style>